package user;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-08-21
 * Time: 12:40
 */
public abstract class User {
    protected String userName;  //用户名
    protected int userId;       //用户id
    protected String role;      //角色

    public User(String userName, int userId, String role) {
        this.userName = userName;
        this.userId = userId;
        this.role = role;
    }

    public String getUserName() {
        return userName;
    }

    public int getUserId() {
        return userId;
    }

    public String getRole() {
        return role;
    }

    //打印菜单
    public abstract int showMenu();

}
